Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Numbering post push #75

Closed
wants to merge 2 commits into from

Conversation

hwangcc23
Copy link
Contributor

Numbering Post-Push

Numbering Post-Push is a good function for discussion in one post.
See the issue #42(#42).

1). Add a field PostPushNum in the line structure.
The line structure:
struct{ char[ColsPerPage], char='\0', CTermCharAttr[ColsPerPage, char=0]}
[ ColsPerPage_char + '\0' + ColsPerPage_CTermCharAttr + PostPushNum ]

2). Detect Post-Push lines and numbering them whenever a character is added in the screen buffer of CTermData.

3). Save the number in PostPushNum of Post-Push lines.

4). Draw PostPushNum in CTermView:DrawChar().

5). Fix a bug of buffer overflow in CTermData::InsertChar(). p.s. Though the function is not used now.

@hwangcc23 hwangcc23 force-pushed the numbering-post-push branch 2 times, most recently from 57492d3 to 7fbd81a Compare April 13, 2016 15:19
Numbering Post-Push is a good function for discussion in one post.
See the issue pcman-bbs#42(pcman-bbs#42).

1). Add a field PostPushNum in the line structure.
The line structure:
struct{ char[ColsPerPage], char='\0', CTermCharAttr[ColsPerPage, char=0]}
[ ColsPerPage*char + '\0' + ColsPerPage*CTermCharAttr + PostPushNum ]

2). Detect Post-Push lines and numbering them whenever a character is added in the screen buffer of CTermData.

3). Save the number in PostPushNum of Post-Push lines.

4). Draw PostPushNum in CTermView:DrawChar().

5). Fix a bug of buffer overflow in CTermData::InsertChar(). p.s. Though the function is not used now.
@hwangcc23 hwangcc23 force-pushed the numbering-post-push branch from 7fbd81a to 0e6b5f4 Compare April 18, 2016 15:34
@hwangcc23 hwangcc23 closed this Feb 12, 2018
@hwangcc23 hwangcc23 deleted the numbering-post-push branch February 12, 2018 07:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant